//  [9/16/2013 OMEGA] created

#ifndef _DUELASSEEDITRESOURCEOFGROUPCMD_H_
#define _DUELASSEEDITRESOURCEOFGROUPCMD_H_

#include <QtWidgets/QUndoCommand>
#include "DuelAssECommon.h"
#include "DuelAssECommand.h"


class DAssEDeclareResourceToGroupCmd : public DAssECommand
{
public:
	DAssEDeclareResourceToGroupCmd(DAssEWorkbench* workbench, QUndoCommand* parent,
		const QString& grpName,
		const QString& archName, const QStringList& resList);
	~DAssEDeclareResourceToGroupCmd();

	virtual void	redo();
	virtual void	undo();

protected:
	DuelAssetEditor*	mParent;
	QString				mTargetGroupName;
	QString				mTargetArchName;
	QStringList			mResList;
};


class DAssEUndeclareResourceFromGroupCmd : public DAssECommand
{
public:
	DAssEUndeclareResourceFromGroupCmd(DAssEWorkbench* workbench, QUndoCommand* parent,
		const QString& grpName,
		const QString& archName, const QStringList& resList);
	~DAssEUndeclareResourceFromGroupCmd();

	virtual void	redo();
	virtual void	undo();

protected:
	/*DAssEDeclareResourceToGroupCmd	mSubCmd;*/
};


#endif